import AbstractComponent from "../base/AbstractComponent";

export default abstract class AbstractController
{
    public init(view:AbstractComponent = null)
    {
        this._view = view;
    }
    public get view(): AbstractComponent {
        return this._view;
    }

    public set view(value: AbstractComponent) {
        this._view = value;
    }

    private _view: AbstractComponent;


    /**处理游戏消息数据 */
    public respGameMsg(data/* sid,buf,len */):void
    {

    }
    /**处理框架消息数据 */
    public respSceneMsg(sid,buf,len):void
    {

    }
    /**更新玩家相关信息 */
    public updatePlayerInfo(arr:any[])
    {
        
    }

     /**更新玩家状态信息 */
     public updatePlayerState()
     {
        
     }

    /**系统通知消息 */
    public showMessage(buf)
    {
        
    }
}